﻿<controls:ChildWindow
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
           xmlns:dataInput="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Data.Input" 
           xmlns:viewmodel="clr-namespace:AdminModule.Views"
           x:Class="AdminModule.Views.SelectTermWindow"
           xmlns:usercontrols="clr-namespace:AdminModule.UserControls.Common"
           Width="400" Height="300" 
           Loaded="ChildWindow_Loaded"
           Title="Выбор периода" mc:Ignorable="d">
   
    <controls:ChildWindow.Resources>
    </controls:ChildWindow.Resources>
   
    <Grid x:Name="LayoutRoot" Margin="2">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        
        <usercontrols:ProgressBar IsVisibility="Collapsed" VerticalAlignment="Center" HorizontalAlignment="Center" x:Name="progressBar"></usercontrols:ProgressBar>

    	<Button x:Name="CancelButton" Content="Отмена" Click="CancelButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,0,0" Grid.Row="1" />
    	<Button x:Name="OKButton" Content="OK" Click="OKButton_Click" Width="75" Height="23" HorizontalAlignment="Right" Margin="0,12,79,0" Grid.Row="1" />
        <ComboBox x:Name="termsComboBox" HorizontalAlignment="Right" Margin="0,102,31,104" Width="176" d:LayoutOverrides="Height">
            <ComboBox.ItemTemplate>
                <DataTemplate>
                    <!--<TextBlock Text="{Binding Path=StartStopYear}"/>-->
                    <StackPanel Orientation="Horizontal">
                        <TextBlock Text="{Binding Path=Start.Year}"></TextBlock>
                        <TextBlock Text="-"></TextBlock>
                        <TextBlock Text="{Binding Path=Stop.Year}"></TextBlock>
                        <TextBlock Text=" ("></TextBlock>
                        <TextBlock Text="{Binding Path=Order}"></TextBlock>
                        <TextBlock Text=", ID: "></TextBlock>
                        <TextBlock Text="{Binding Path=IDTerm}"></TextBlock>
                        <TextBlock Text=")"></TextBlock>
                    </StackPanel>
                </DataTemplate>
            </ComboBox.ItemTemplate>
        </ComboBox>
        <dataInput:Label HorizontalAlignment="Left" Margin="34,105,0,105" Content="Копировать в  период:" d:LayoutOverrides="Height"/>
    </Grid>
</controls:ChildWindow>